/**
 * Created by firefoxmmx2 on 17-7-5.
 */
Ext.define('YBB.view.login.LoginController', {
    extend: 'Ext.app.ViewController',
    alias: 'controller.login',

    /**
     * Called when the view is created
     */
    init: function () {

    },
    onLoginClick: function (btn, evt) {
        var form = this.lookupReference('loginForm');
        if(form.validate()){
            form.submit({
                url:YBB.contextPath()+"/login",
                params:form.getValues(),
                success:function (form,result,data) {
                    Ext.getStore("")
                },
                failure:function (form,result) {

                }
            });
        }
    }
});